package sunyan.controller;

import sunyan.entity.SunYanEntity;
import sunyan.service.SunYanService;

import javax.annotation.Resource;
import java.util.List;

public class SunYanController {
    List<SunYanEntity> list = null;

    String name = null;
    @Resource
    SunYanService sunYanService;

    public String queryPage(){
        list =sunYanService.queryPage(name);
        return "queryPage";
    }


    public List<SunYanEntity> getList() {
        return list;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setList(List<SunYanEntity> list) {
        this.list = list;
    }
}
